<?php

namespace app\admin\controller\chat;

use app\admin\model\UM as UM;
use app\admin\service\ConsultingOptionsServerService;
use ShidianUtil\Thinkphp\Response\ApiResponse;
use think\APP;

/**
 * ConsultingOptionsServer 控制器
 * Class ConsultingOptionsServer
 * @package app\admin\controller\chat;
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037509
 * @see \app\admin\validate\chat\ConsultingOptionsServer
 */
class ConsultingOptionsServer
{
    // service
    private ConsultingOptionsServerService $service;

    public function __construct(ConsultingOptionsServerService $consultingOptionsServerService)
    {
        $this->service = $consultingOptionsServerService;
    }

    /**
     * 列表
     * @return ApiResponse
     * @url /chat/consulting_options_server/index
     */
    public function index(): ApiResponse
    {
        return ApiResponse::success($this->service->index());
    }

}
